package com.cayden.commons.httpclient;

import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: cayden
 * Date: 2022/2/21 00:56
 */
public abstract class HttpRequestBase implements CaydenHttpClient{

    protected static final Logger LOG = LoggerFactory.getLogger(HttpClientExecutor.class);

    protected static final int MS_TO_S_UNIT = 1000;

    protected static final String HTTPS = "https";

    protected String url;

    protected int maxConnectionSeconds = 0;

    protected String contentType;

    protected HttpEntity httpEntity;

    protected HttpHost proxyHost;

    /**
     * 请求参数及header参数
     */
    protected Map<String, String> requestParams = new HashMap<>();
    protected Map<String, String> headers = new HashMap<>();

}
